<!--# include Template('header');#-->
<!--header----main-->
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<div id="content">
			<div class="read-content">
				<div class="pos"><div class="right" style="font-weight:normal"><img src="images/icon/xhtml_go.png" align="absmiddle" />&nbsp;<a href="javascript:copyUrl('$view[title]', '{$very[url]}/view.php?tid=$tid&cid=$cid');">复制本网址发给朋友</a></div>&nbsp; $cate::position </div>
				<!--#if($mid>0){#-->
				<div class="content_pos">
				<!--#if($view[prev][title]){#-->				
				<div style="float:left; padding-left:11px;">上一篇： <a href="{$view[prev][url]}" title ="{$view[prev][title]}">{@substrs($view[prev][title],32)@}</a></div>
				<!--#}#-->	
				<!--#if($view[next][title]){#-->
				<div style="float:right">		
				&nbsp;&nbsp;&nbsp;下一篇： <a href="{$view[next][url]}" title ="{$view[next][title]}">{@substrs($view[next][title],32)@}</a></div>
				<!--#}#-->
				</div>
				<!--#}#-->
				<h1>$view[title] </h1>
				<div class="dd">$view[publisher] 上传于 {@get_date($view[postdate])@} 评论 <span id='comnum'>$view[comnum]</span> 条 浏览 <span id='hits'>$view[hits] 次</span>
					<!--#if($mid==-2){#-->
					<a href="$view[bbsurl]" target="_blank">转入论坛浏览</a>
					<!--#}#-->
					<a href="javascript:;" onclick="collect();"><img src="images/folder_heart.png" align="absmiddle" />[收藏]</a>
				</div>
				<div id="textarea">
					<!--#if($view[photo]){#-->
					<div style="text-align:center"><img src="$view[photo]" class="pic" /></div>
					<!--#}#-->
					$view[content] </div>
<div class="h21">
<div class="right" style="font-weight:normal"><a href="view.php?cid=$cid&tid=$tid&page=$page&viewtype=0"><img src="images/icon/view_list.png" align="absmiddle" /> 列表浏览</a> <a href="view.php?cid=$cid&tid=$tid&page=$page&viewtype=1"><img src="images/icon/view_thumb.png" align="absmiddle" /> 缩略图浏览</a></div><img src="images/icon/folder.png" hspace="10" align="absmiddle" />文件列表 ($view[resnum])</div>
<!--#if($viewtype){ include Template('content-list');}else{include Template('content-table');}#-->
<div class="clear"></div>
$pages
<!--<div style="margin:auto; text-align:center; padding:5px;"><img src="images/zipdl.png" onclick="alert('对不起，您所使用的是试用版，不支持批量打包下载！');" /> <img src="images/pldl.png" onclick="alert('对不起，您所使用的是试用版，不支持批量打包下载！');" /></div>-->
				<div class="dd"></div>
<div id="sidebar2">
<!--# if(!empty($view[links])) { #-->
				<h2 class="h21">相关{$very[contentName]}：$view[tags]</h2>
				<ul class="relate">
					<!--#foreach($view[links] as $val){#-->
					<li><img align="absmiddle" src="images/icon/content.png"/> <a href="$val[url]">{@substrs($val[title],80)@}</a> ($val[resnum])  <em>$val[publisher] {@get_date($val[postdate])@}</em></li>
					<!--#}#-->
				</ul>
<!--# } #-->
</div>
				<!--#if($catedb[$cid][comment] && $mid>0){#-->
				<div class="h21"><img src="images/icon/comment.png" hspace="10" align="absmiddle" />用户评论</div>
				<div id="comment"></div>
<script type="text/javascript" src="script/comment.js"></script>
<script type="text/javascript" src="script/xhr.js"></script>

<script language="javascript">
var tid = $tid;
var mid = $mid;
var cid = $cid;
var flag = 0;

init_message(10);

/* 收藏 */
function collect()
{
	if(!login_name)
	{
		alert('您尚未登录，无法收藏');
		return false;
	}
	var timeVar = new Date().valueOf();
	$.get("my.php","tid=" + tid + "&action=addfav&t=" + timeVar, function collectOK(data){
			//alert(res.responseText);
			if(data == 0)
			{
				alert('您已经收藏过了，请勿重复收藏。');
			}
			else if(data == 1)
			{
				alert('成功收藏。');
			}
			else
			{
				alert('收藏此{$very[contentName]}失败');
			}
		}
	);
}

</script>
				<!--#}#-->
			</div>
			<div class="thread-side right">
<!--# include Template('sidebar'); #-->
			</div>
</div>
<div class="clear"></div>
<!---main----foot-->
<!--# include Template('foot');#-->